//
//  MLPhotoView.h
//  BrowsePictureDemo
//
//  Created by GZMLUser on 14-11-13.
//  Copyright (c) 2014年 GZMLUser. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MLPhotoBrowser.h"
typedef enum loadType{ // 加载类型
    localeLoad, // 本地
    netWorkLoad // 网络
}loadType;

@class MLPhotoInfo,MLPhotoBrowser,MLPhotoView;

@protocol MLPhotoViewDelegate <NSObject>
@optional
- (void)photoViewImageFinishLoad:(MLPhotoView *)photoView;
- (void)photoViewSingleTap:(MLPhotoView *)photoView;
- (void)photoViewDidEndZoom:(MLPhotoView *)photoView;

@end


@interface MLPhotoView : UIScrollView <UIScrollViewDelegate>

@property (nonatomic,strong)MLPhotoInfo *photos; // 图片
@property (nonatomic ,assign)BOOL firstShow;// 第一次显示
@property (nonatomic ,assign)loadType loadType;
// 代理
@property (nonatomic, weak) id<MLPhotoViewDelegate> photoViewDelegate;
@end
